#!/opt/php/bin/php -d display_errors=1
<?php
require_once 'PHPUnit/Framework.php';
require_once 'PHPUnit/TextUI/TestRunner.php'; 

# mis api files
require_once 'TVB/pms/pdes/common/bootstrap.php';
require_once 'TVB/pms/pdes/common/util/MisApi.class.php'; 
require_once 'TVB/pms/pdes/common/util/MisApiConfig.php'; 
require_once('TVB/pms/pdes/common/util/mis/MisMapping.class.php');


require_once('TVB/pms/pdes/common/util/mis/MisCastHelper.class.php');
require_once('TVB/pms/pdes/common/util/mis/MisProgramme.class.php');
require_once('TVB/pms/pdes/common/util/mis/MisInfoAward.class.php');
require_once('TVB/pms/pdes/common/util/mis/MisInfoSong.class.php');
require_once('TVB/pms/pdes/common/util/mis/MisInfoAddress.class.php');
require_once('TVB/pms/pdes/common/util/mis/MisInfoGeneralInfo.class.php');
require_once('TVB/pms/pdes/common/util/mis/MisInfoRecipe.class.php');
require_once('TVB/pms/pdes/common/util/mis/MisInfoPageant.class.php');
require_once('TVB/pms/pdes/common/util/mis/MisEpisodeHelper.class.php');
require_once('TVB/pms/pdes/common/util/mis/MisInfoBiography.class.php');
require_once('TVB/pms/pdes/common/util/mis/MisInfoProduct.class.php');
require_once('TVB/pms/pdes/common/util/mis/MisInfoQA.class.php');


# test cast files
require_once 'MisCastImportTest.php';
require_once 'MisProgrammeTest.php';
require_once 'MisInfoPageantTest.php';
require_once 'MisInfoProductTest.php';
require_once 'MisInfoQATest.php';
require_once 'MisInfoRecipeTest.php';
require_once 'MisInfoSongTest.php';
require_once 'MisEpisodeHelperTest.php';
require_once 'MisInfosTest.php';
require_once 'MisInfoGeneralInfoTest.php';

class MyTests
{
	public static function main()
	{
		PHPUnit_TextUI_TestRunner::run(self::suite());
	}

	public static function suite()
	{
		$suite = new PHPUnit_Framework_TestSuite();
		#$suite->addTestSuite("MisProgrammeTest");
		#$suite->addTestSuite("MisEpisodeHelperTest");
		#$suite->addTestSuite("MisCastImportTest");

		#$suite->addTestSuite("MisInfoPageantTest");
		#$suite->addTestSuite("MisInfoProductTest");
		$suite->addTestSuite("MisInfoSongTest");

		#$suite->addTestSuite("MisInfoGeneralInfoTest");
		#$suite->addTestSuite("MisInfoRecipeTest");
		#$suite->addTestSuite("MisInfoQATest");
		return $suite;
	}
}

if(isset($argv)){
	MyTests::main();
}

